package com.wjs.gulimall.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.wjs.gulimall.gulimallproduct.VO.AttrGroupRelationVo;
import com.wjs.gulimall.gulimallproduct.VO.AttrRespVo;
import com.wjs.gulimall.gulimallproduct.VO.AttrVo;
import com.wjs.gulimall.gulimallproduct.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author wangjingsong
 * @email wangjingsong@gmail.com
 * @date 2022-04-17 15:11:00
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils quertBaseList(Map<String, Object> params, Long catelogId, String type);

    AttrRespVo getInfoById(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationList(Long id);

    void deleteRelation(AttrGroupRelationVo[] vos);

    PageUtils getNoRelationList(Map<String, Object> params, Long id);

    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

